package cn.hj.config;

import cn.hj.beans.Person;

import javax.servlet.ServletContext;

public class MyBean implements WebInitializerInterface {
    @Override
    public void init(ServletContext sc) {
        sc.setAttribute("pp",new Person("zhangsan",18));
    }
}
